how to change templates folder in flask

50

app = Flask(__name__, template_folder='/content/gdrive/MyDrive/test')

@app.route('/')
def home():
  return render_template('test.html')

Comments

Submit
0 Comments